package Annotation;

/**
 * @Author shangchao
 * @Date 2020/9/25 19:25
 */
public class ServiceA {
    @SimpleInject
    ServiceB b;

    public void callB(){
        b.action();
    }

    public ServiceB getB(){
        return b;
    }

    public static void main(String[] args) {
        ServiceA a = new ServiceA();
        a.callB();
    }
}
